import pymongo

conn = pymongo.MongoClient("mongodb://localhost:27018/")
db = conn.python

db.info.insert({"accout": 21, "user_name": "xiaohai"})

data = db.info.find_one()
print(data)

data = db.info.find().count()
print(data)

db.info.remove()
print(data)
